<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="../bootstrap-5.1.3-dist/css/bootstrap.css">
    <script src="../bootstrap-5.1.3-dist/js/bootstrap.js"></script>
</head>
<style>
    div {
        width: 100px;
        height: 100px;
        float: left;
        margin: 15px;
    }
</style>

<body class="container">
    <h3 align="center">设置边框颜色</h3>
    <div class="border border-primary">border-primary</div>
    <div class="border border-secondary">border-secondary</div>
    <div class="border border-success">border-success</div>
    <div class="border border-danger">border-danger</div>
    <div class="border border-warning">border-warning</div>
    <div class="border border-info">border-info</div>
    <div class="border border-light">border-light</div>
    <div class="border border-dark">border-dark</div>
    <div class="border border-white">border-white</div>
</body>

</html>